#！/usr/bin/python 
# -*- coding:utf-8 -*-  
# @Time: 2019/6/9 19:12   
# @Author: Envy   
# @File: django_celery_test_shuoming.py

# 注意，以下代码直接在terminal命令下运行即可

# 指令中的MyDjango是项目名
# celery worker -A MyDjango -l info -P eventlet


# 1、启动Django
# python manage.py runserver 80
# 2、启动Celery
# celery -A MyDjango worker -l info -P eventlet
# 3、启动定时任务
# celery -A MyDjango beat -l info -S django